package de.mouseless.csv2sql.model;

public class ForeignKeyConstraint extends AbstractConstraint {
   String fromTableName;
   String fromColumnName;
   String toTableName;
   String toColumnName;
   FKOnDelete onDelete = FKOnDelete.NO_ACTION;

   public FKOnDelete getOnDelete() {
      return onDelete;
   }

   public void setOnDelete(FKOnDelete onDelete) {
      this.onDelete = onDelete;
   }

   public String getFromTableName() {
      return fromTableName;
   }

   public String getFromColumnName() {
      return fromColumnName;
   }

   public String getToTableName() {
      return toTableName;
   }

   public String getToColumnName() {
      return toColumnName;
   }

   public ForeignKeyConstraint(String name, String fromTableName, String fromColumnName, 
            String toTableName, String toColumnName) {
      super(name);
      this.fromTableName = fromTableName;
      this.fromColumnName = fromColumnName;
      this.toTableName = toTableName;
      this.toColumnName = toColumnName;
   }

}
